package beans;

import java.util.List;

import javax.ejb.Remote;

import dto.DTOUser;

@Remote
public interface UserBeanRemote {
	public void addUser(DTOUser uDto, String Language);
	public void invalidateUser(Integer i);
	public void validateUser(Integer id);
	public DTOUser getUser(int uId);
	public boolean existsNameInDB(String enteredName);
	public boolean existsEmailInDB(String enteredName);
	public void updateUser(DTOUser dUser);
	public boolean isSupervisor(int idUser, int idRepository);
	public List<DTOUser> getAllUsersDTO();
	public int getUserIdByName(String userName);
	public List<DTOUser> getValidatedUsersFromRepository(int idRepository);
	public List<DTOUser> getUsersNotInRepository(int idRepository);
	public DTOUser getUserByName(String userName);
	public void setEmailNew(int id, String email);
	public String getEmail(Integer id);
	public void setPhoneNew(Integer id, String enteredPhone);
	public String getPhone(Integer id);
	public List<DTOUser> getAllUsersDTOStartingWith(String searchText);
}
